import {request} from '@/plugins/request'

export const login = data => {
    return request({
        method:'POST',
        url:'/api/users/login',
        data:data
    })
}

export const register = data => {
    return request({
        method:'POST',
        url:'/api/users',
        data:data
    })
}


export const updateUser = data => {
    return request({
        method:'PUT',
        url:'/api/user',
        data:data
    })
}



